/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package control10;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author mj
 */
public class Utiles {
     public static int pedirNumero() throws IOException
    {//PEDIR NUMERO
        int numero;
        InputStreamReader flujo=new InputStreamReader(System.in);
        BufferedReader teclado=new BufferedReader(flujo);
          System.out.println("INTRODUZCA UN NUMERO");
        numero=Integer.parseInt(teclado.readLine());
        while(numero< 1 || numero >10000)
        {
           
             numero=Integer.parseInt(teclado.readLine());
            
        }
        return numero;
    }//PEDIR NUMERO
    
}
